package com.s3.khospitalds.controller;

import com.s3.khospitalds.common.R;
import com.s3.khospitalds.service.PatientCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hlq
 * @version 1.0
 * @Description
 * @date 2025/3/3 14:40
 */
@RestController
@CrossOrigin(origins = "*")
public class PatientCountController {
    @Autowired
    private PatientCountService patientCountService;

    @RequestMapping("/AllPatientCount")
    public R AllPatientCount(){
        return new R().addData("AllPatientCount",patientCountService.AllPatientCount());
    }
}
